var blockAction = '';
var returnvalue = 0;
var returntext  = '';
$(document).ready(function() {
 	startPage();

	$( window ).resize(function() {
	  startPage();
	});	
	
	$('.search-icon').click(function(e) {
		$('#search_form').submit();
		
        e.preventDefault();
        e.stopPropagation();
    });	 

	$(document).on({
	    mouseleave: function(){
			$(this).hide('blind');
	    }
    }, '.action-icon-staus');

	$(document).on({
	    mouseover: function(){
			var id = $(this).attr('data-userid');
			var offset = $(this).offset();
			var newtop = (offset.top)-235;

	        $.get("/../../GroupList/Profile", { id: id })
		  .done(function( data ) {
			 $('.timeline-Avatar-detail').html(data); 
		     $('.timeline-Avatar-detail-box').css('top',newtop).show();
		  });
  			
			
	    }
    }, '.timeline-Comment-Avatar');

	$(document).on({
	    mouseleave: function(){
			$(this).hide();
			$('.timeline-Avatar-detail').html('');
	    }
    }, '.timeline-Avatar-detail-box');    
        
	$('.action-icon1 , .action-icon2 , .action-icon3').click(function (e) {
	    $(this).find('.action-icon-staus').show('blind');

	    e.preventDefault();
	    e.stopPropagation();
	});

	$(document).on({
	    mouseleave: function () {
	        $(this).hide('blind');
	    }
	}, '.action-icon-staus');

	if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
	    $('.container').css('min-width', 1000);
	}
});
function startPage(){
	var main_menu = $('.body_content').height();
	$('.main_menu').css('min-height',main_menu);
	var search_box = $('.main-logo').height();
	$('.search-box').height(search_box-4);
	$('.search-icon').height(search_box-2);
}
function openActionBox(){
	$('.timeline-action-box').show('blind');
}
